#!/bin/bash
/root/embpy/embpy.sh $0 ; exit
#these lines are suppressed, processing starts from html-tag
<HTML>
[-title='Embpy works!! GREAT'-]
<title>[+title+]</title>
args=[+args+]
[-
#pure Pyhon here ;)
mylist=['bacon','spam','eggs']
-]
[# nice to comment#]
[$ def koje(arg='default') $]
<h2>kukkuu [+arg+]</h2>
[$end$]
<h1>[+title+]</h1>
<hr>
[$   For x in mylist$]  
[$if x == 'eggs'$]<b>[$end$]
yes, please -- can I have some [+x+] <br>
[$if x == 'eggs'$]</b>[$end$]
[$end$]
[$kukkuu$]
<br>
Nice table -- nested loops!
<table border=1>
[$for y in range(0,10)$]
<tr>
[$for x in range(0,y*3+2)$]
<td>[+(x,y)+]</td>
[$end$]
</tr>
[$break$]
[$end$]
</table>
<br>
And finally input :<br> [-fdat['test']="Mr Idle"-]
user: <input name="test"><br>
xx: <input name="xx"><br>
(contents prefilled)
[-koje(123)
koje()
koje(789)
-]
you can print too<br>
[-
ouf.write("from python block<br>")
-]
nice!
</HTML>


